﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FAP.CaptchaCenter;
using ChatNetwork;


namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            CaptchaServer.OnReceviceCaptcha += CaptchaServer_OnReceiveClientCaptcha;
            CaptchaServer.StartServer();
        }
        void CaptchaServer_OnReceiveClientCaptcha(string _strCaptcha)
        {
            MessageBox.Show(_strCaptcha);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            CaptchaServer.SendCaptcha(textBox1.Text);
        }

    }
}
